home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / MAC OS 8 / cmm-framework-10.sit / Trygve's CMM Framework 1.0 / CMM Framework Read Me next >
Text File  |  1997-08-28  |  3KB  |  44 lines

  1. Trygve's CMM Framework
  2. version 1.0, August 28 1997
  3. by Trygve Isaacson
  4. trygve@bombaydigital.com
  5. <http://www.bombaydigital.com>
  6.  
  7. This source code is helpful in building plug-ins for the MacOS 8 Contextual Menu Manager. It is too small to really be considered a "framework" if you ask me, but what else can it be succinctly named? There is a base class, PluginBase, which does a lot of the dirty work for you of parsing AE descriptor data, command item building, file grunge work, temporary files, etc. You need to create a subclass, Plugin, that does your specific work by overriding a key method or two to provide your hard work, and may override another method or two to control the basic behavior. Your Plugin object is instantiated by the PluginSOM object that is directly grappled by the SOM code that lurks in the system.
  8.  
  9. There are two sample plugins provided, and a "template" plugin that you might find useful for cloning when you want to start building a new plugin of your own. Look at the samples to see how easy it is. Also look at the detailed comments in PluginBase.h and PluginBase.cp to see the gory details on how things work. It's not tricky, so dive right in!
  10.  
  11. Requirements
  12.  
  13. The supplied projects were created in CodeWarrior 11. CW Pro should be able to convert them over.
  14.  
  15. You need to have Apple's Contextual Menu Manager SDK (header files and libraries). The projects supplied here have their include paths set to assume that the CMM headers and libraries are located in a folder called "CMM SDK" next to the other folders supplied here. You can change this, of course. The files assumed to be in the SDK folder are:
  16.  
  17. - AbstractCMPlugin
  18. - AbstractCMPlugin.h
  19. - ContextualMenu.h
  20. - ContextualMenuPlugins.h
  21. - SOMobjectsェ for Mac OS
  22.  
  23. I know the SDK is available online through <http://devworld.apple.com/>, but as I look for it now I can't find it.
  24.  
  25. Your plugins will run only on PowerPC machines. The Contextual Menu Manager currently does not support 68K plugins. In fact, the SDK does not give you a way to build 68K plugins. I don't know of any technical reason for this limitation, only "human resource" limitations, such as "who's gonna do it?"
  26.  
  27. Licensing Information
  28.  
  29. Copyright ゥ1997 by Trygve Isaacson. All Rights Reserved.
  30.  
  31. Use this source code! Create plug-ins galore! Here are the restrictions:
  32.  
  33. Permission granted to:
  34. - Compile this source code.
  35. - Modify this source code, but not to remove this copyright information.
  36. - Freely distribute the compiled object form of this source code, and any modifications you make, in your programs.
  37.  
  38. Permission NOT granted to:
  39. - Redistribute modified versions of this source code.
  40.  
  41. You must grant me one single-user license to your plugins based on this source code, and notify me by email where to get it.
  42.  
  43. In plain English, this means that you can use this code for free, hack it to your heart's delight, and release any plug-ins you build with it, commercial or not. Just don't redistribute this source code package as if you wrote it. Let me do that. And, since you are using my work for free, the least you can do is let me be a registered owner of one copy of your plugin.
  44.